<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
		<title>修改面</title>
		<link rel="icon" href="assets/img/lcxm.ico" type="image/ico">
		<script type="text/javascript" src="../../commonFragment/header.js"></script>
		<script type="text/javascript" src="../../commonFragment/nojs.header.js" ></script>
		<script>
			$(function(){
				var id = $("#id").val();
				if(id){//编辑页面删除密码
					$("[name='password']").closest(".form-group").remove();
				}
			});
			//提交之后
			function after(data) {
				if(data && data.code==0){
					top.logout();
				}
			}
		</script>
	</head>
	<body>
		<div class="container-fluid p-t-15">
			<div class="row">
				<div class="col-lg-12">
					<div class="card">
						<div class="card-body">
							<form class="form-horizontal validate" role="form vue-form" method="post" action="/system/user/password">
								<div class="form-group">
									<label for="oldPassword" class="col-sm-2 control-label">原密码*</label>
									<div class="col-sm-6 ">
										<input type="password" class="form-control" id="oldPassword" name="oldPassword"  
										 data-rule-required="true" 
										 placeholder="请输入原密码" 
										 autocomplete="off"/>
									</div>
									<div class="col-sm-4  help-inline form-control-static"></div>
								</div>
								
								<div class="form-group">
									<label for="password" class="col-sm-2 control-label">新密码*</label>
									<div class="col-sm-6 ">
										<input type="password" class="form-control" id="password" name="password"  
										 data-rule-required="true" 
										 placeholder="请输入新密码" 
										 autocomplete="off"/>
									</div>
									<div class="col-sm-4  help-inline form-control-static"></div>
								</div>
								
								<div class="form-group">
									<label for="passwor2d" class="col-sm-2 control-label">确认密码*</label>
									<div class="col-sm-6 ">
										<input type="password" class="form-control" id="password2" 
										 data-rule-required="true" data-rule-equalTo="#password"
										 placeholder="请重复新密码" 
										 autocomplete="off"/>
									</div>
									<div class="col-sm-4  help-inline form-control-static"></div>
								</div>

								<div class="form-group clearfix">
									<div class="col-sm-offset-3 col-sm-9">
										<button type="button" class="btn btn-primary action-ajax-form" data-after="after">
											<i class="glyphicon glyphicon-ok"></i> 提交
										</button>
										<button type="button" class="btn btn-info action-close-tab">
											<i class="glyphicon glyphicon-repeat"></i> 返回
										</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
